/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.jautomation.pdetect.scantypes;

import org.jautomation.pdetect.IPixDetect;
import org.jautomation.pdetect.ScanReceiver;
import org.jautomation.pdetect.WorkerContext;

/**
 *
 * @author Dominik Hensler
 */
public class PixelFinder implements IPixDetect {
    ScanReceiver _scanReceiver;
    
    public PixelFinder(ScanReceiver scanReceiver){
        this._scanReceiver=scanReceiver;        
    }

    @Override
    public void execute(WorkerContext pcontext) {
        this._scanReceiver.findPixel(pcontext);
        
    }
}
